home *** CD-ROM | disk | FTP | other *** search
- Path: rap.SanDiegoCA.ATTGIS.COM!not-for-mail
- From: susanc@news.SanDiegoCA.ATTGIS.COM (susan cassidy)
- Newsgroups: comp.unix.questions,comp.lang.c
- Subject: Re: Bold ASCII
- Date: 14 Mar 1996 08:33:04 -0800
- Organization: AT&T Global Information Solutions, San Diego, CA
- Message-ID: <4i9ho0$3i0@ssd3450.SanDiegoCA.ATTGIS.COM>
- References: <4i7cpj$hqa@nexen.nexen.com>
- NNTP-Posting-Host: ssd3450.sandiegoca.attgis.com
-
- In article <4i7cpj$hqa@nexen.nexen.com>,
- Matthew B. Doar <mdoar@nexen.com> wrote:
- >Anyone know how to get bold strings of text
- >from a program (termcap related?)
- >
- >e.g.
- >
- >printf("\012 This is in bold \013\n");
- >
- >where \012 and \013 are whatever the magic ascii values
- >are to turn on and off bold.
- >
- >~Matt
-
- My system uses terminfo, not termcap, but the principal should be the
- same. My documentation says that terminfo bold is called md in
- termcap, and sgr0 is called me in termcap. Sample that I tested:
-
- MSG="`tput bold`BOLD OUTPUT `tput sgr0`"
- echo "NORMAL TEXT"
- echo $MSG
- echo "NORMAL AGAIN"
-
- Using tput makes this terminal independent, as bold, reverse, blink,
- etc. are depending on the exact terminal or terminal emulation mode
- you are using.
- --
- Susan Cassidy
- email: susan.cassidy@sandiegoca.ncr.com
-